package zb.fix.kits;

import jodd.util.buffer.FastCharBuffer;

/**
 * 
 * @author Administrator
 *
 */
public class BufferKit {
	private FastCharBuffer fb = new FastCharBuffer();

	public BufferKit appendln(String str) {
		if (fb.isEmpty()) {// 如果为空,另外起一行
			fb.append("\n");
		}
		fb.append(str + "\n");
		return this;
	}

	public BufferKit appendLast(String str) {
		fb.append(str);
		return this;
	}

	@Override
	public String toString() {
		return fb.toString();
	}

}
